/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package MODEL;

import java.io.Serializable;
import java.util.Observable;

/**
 *
 * @author Irene
 */
public class Research extends Observable implements Serializable {
    private String title;
    private String note;

    public Research(String title, String note) {
        this.title = title;
        this.note= note;

    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
        setChanged();
        notifyObservers();
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
        setChanged();
        notifyObservers();
    }

    /* overrides the objects and returns it as a string
     */
    @Override
    public String toString() {
        return this.title;
    }
}
